package Display;
import java.awt.*;
import javax.swing.*;

public class Display {
	
	//fields
	JFrame jfrm = null;
	
	public Display(){
		this.jfrm = new JFrame("Swing application");
		this.jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public void display(int width, int height, JLabel label){
		this.jfrm.setSize(width, height);
		this.jfrm.add(label);
		this.jfrm.setVisible(true);
	}
	
}
